/*
 *
 *  * Copyright (c) 2016. For Intelligent Group.
 *
 */

package com.intelligent.ispc.client.core.modal.spc;

import org.apache.commons.collections.map.HashedMap;

import java.util.Map;

/**
 * Created by Peter on 2016/9/3.
 */
public class ChartDataModal {

    public static final String CHART_NDC = "CHART_NDC";
    public static final String CHART_SC = "CHART_SC";
    public static final String CHART_RUN = "CHART_RUN";
    public static final String CHART_XBAR = "CHART_XBAR";
    public static final String CHART_SD = "CHART_SD";
    public static final String CHART_R = "CHART_R";
    public static final String CHART_MR = "CHART_MR";


    private Map<String, Object> dataMap;

    /**
     * Contructor
     */
    public ChartDataModal() {
        dataMap = new HashedMap();
    }

    /**
     * Get the chart data
     *
     * @param key chart name
     * @return this chart data
     */
    public Object getData(String key) {
        return dataMap.get(key);
    }

    /**
     * Set the chart name and data to table module
     * @param key chart name
     * @param value chart data
     */
    public void add(String key, Object value) {
        dataMap.put(key, value);
    }

}
